
<#include "/common/freemarker/include_header.ftl">

<body style="padding:20px">
	<div class="panel panel-default">
 		<form  name=file_upload_form action="<@context/>common/uploadfile/uploaddb.do"  method="POST" enctype="multipart/form-data">
			<table>
				<tr>
					<td>
						<input class="form-controls" type="File" name="upload" size=20 >
					</td>
					<td>
						<a  type="button" class="btn btn-xs btn-primary" onclick="javascript:file_upload_form.submit();">上传文件</a>	  	
					</td>  
			  	</tr>
		    </table>
		 </form>

	</div>


<div class="panel panel-default">
	<div class="panel-heading"><strong>文件列表</strong></div>
	<div class="panel-body">
	<table class="moduleDisplay">
		<tr><td>id</td><td>名称</td><td>显示</td><td>操作</td></tr>
		
	<#list  rhs["datalist"] as x>
		<tr>
		<td>${x.id?if_exists}</td>
		<td>${x.fileName?if_exists}</td>
		<td>
		${x.fileType?if_exists}
		
		<#--显示图片类型
		<#if x.fileType?exists && x.fileType?string == "image/png">
		<img style="width:100px; height:120px" src="common_uploadfile_show_image.do?id=${x.id?if_exists}" />
		</#if>
		--->
		</td> 
		<td ><a  type="button" class="btn btn-xs btn-info" href="<@context/>common/uploadfile/file_download.do?id=${x.id?if_exists}">x载</a></td>
		</tr>
	</#list>
	</table>
	</div>
</div>

</body>		


